# 游戏配置文件

# 屏幕设置
SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
FPS = 60
SCROLL_THRESHOLD = 200  # 滚动阈值

# 颜色定义
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
RED = (255, 0, 0)
GREEN = (0, 255, 0)
BLUE = (0, 0, 255)
YELLOW = (255, 255, 0)
GRAY = (128, 128, 128)
GOLD = (255, 215, 0)  # 金色
ORANGE = (255, 165, 0)  # 橙色
DARK_GREEN = (0, 100, 0)  # 深绿色
BROWN = (139, 69, 19)  # 棕色
SKY_BLUE = (135, 206, 235)  # 天蓝色

# 玩家设置
PLAYER_WIDTH = 40
PLAYER_HEIGHT = 40
PLAYER_SPEED = 5
PLAYER_HEALTH = 100
PLAYER_ATTACK_POWER = 10
PLAYER_ATTACK_DURATION = 10
PLAYER_JUMP_POWER = 15
PLAYER_GRAVITY = 0.8
PLAYER_ATTACK_RANGE = 60  # 增加攻击范围

# 敌人设置
ENEMY_BASIC_COLOR = (255, 0, 0)
ENEMY_FAST_COLOR = (255, 100, 100)
ENEMY_STRONG_COLOR = (150, 0, 0)

ENEMY_BASIC_SPEED = 1  # 降低速度
ENEMY_BASIC_HEALTH = 50
ENEMY_BASIC_ATTACK_POWER = 5
ENEMY_BASIC_JUMP_POWER = 12
ENEMY_BASIC_JUMP_PROBABILITY = 5  # 跳跃概率5%

ENEMY_FAST_SPEED = 2  # 降低速度
ENEMY_FAST_HEALTH = 30
ENEMY_FAST_ATTACK_POWER = 3
ENEMY_FAST_JUMP_POWER = 14
ENEMY_FAST_JUMP_PROBABILITY = 3  # 跳跃概率3%

ENEMY_STRONG_SPEED = 0.5  # 降低速度
ENEMY_STRONG_HEALTH = 100
ENEMY_STRONG_ATTACK_POWER = 10
ENEMY_STRONG_JUMP_POWER = 10
ENEMY_STRONG_JUMP_PROBABILITY = 2  # 跳跃概率2%

# 攻击特效设置
ATTACK_EFFECT_DURATION = 5  # 攻击特效持续时间

# 关卡设置
WORLD_WIDTH = 2400  # 世界宽度（原来3倍）
PLATFORM_COUNT = 15
INITIAL_ENEMY_COUNT = 8  # 减少敌人数量到8个

# 森林场景设置
TREE_WIDTH = 30
TREE_HEIGHT = 80
GRASS_HEIGHT = 20

# 胜利点设置
VICTORY_POINT_WIDTH = 50
VICTORY_POINT_HEIGHT = 50

# 摄像机设置
CAMERA_SPEED = 5

# 音效设置
SOUND_VOLUME = 0.7
MUSIC_VOLUME = 0.5